Length = int(input("请输入长度："))
i = 0
print("左下")
while Length >= i:
    print("*" * i,)
    i += 1

print("左上")
while Length <= i+1:
    print("*" * i,)
    i -= 1

print("右上")
i = Length
while i >= 1:
    print(" "*(Length -i)+"*" * i,)
    i -= 1

print("右下")
i = 1
while i <= Length:
    print(" "*(Length -i)+"*" * i,)
    i += 1